package killer.product.controller;

import java.util.List;

import javax.annotation.Resource;

import killer.product.model.ProductVO;
import killer.product.service.ProductService;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
@Controller
public class ProductController {
	@Resource(name="productService")
	private ProductService productService;
	@RequestMapping("/mainPage.killer")
	public ModelAndView mainPage(){
		return new ModelAndView("home");
	}
	@RequestMapping("registerProduct.killer")
	public String registerProduct(ProductVO paramPvo){
		return null;
	}
	@RequestMapping("updateProduct.killer")
	public ModelAndView updateProduct(ProductVO paramPvo){
		return null;
	}
	@RequestMapping("deleteProduct.killer")
	public ModelAndView deleteProduct(int productId){
		return null;
	}
	@RequestMapping("getCountryListByContinent.killer")
	public ModelAndView getCountryListByContinent(String continent){
		List list=productService.getCountryListByContinent(continent);
		return new ModelAndView("product/getCountryListByContinent.product","list",list);
	}
	@RequestMapping("getCityListByCountry.killer")
	public ModelAndView getCityListByCountry(String country, int nowPage){
		return null;
	} 
	@RequestMapping("getProductListByCity.killer")
	public ModelAndView getProductListByCity(String city,int nowPage){
		return null;
	}
	@RequestMapping("getProductListByPriceDesc.killer")
	public ModelAndView getProductListByPriceDesc(int nowPage){
		return null;
	}
	@RequestMapping("getProductListByPriceAsc.killer")
	public ModelAndView getProductListByPriceAsc(int nowPage){
		return null;
	}
	@RequestMapping("getProductListByPriceRange.killer")
	public ModelAndView getProductListByPriceRange(int minPrice,int maxPrice,int nowPage){
		return null;
	}
	@RequestMapping("getProductListByHitsDesc.killer")
	public ModelAndView getProductListByHitsDesc(int nowPage){
		return null;
	}
	@RequestMapping("getProductListByDuration.killer")
	public ModelAndView getProductListByDuration(int duration,int nowPage){
		return null;
	}
	@RequestMapping("getProductListByLikesDesc.killer")
	public ModelAndView getProductListByLikesDesc(int nowPage){
		return null;
	}
	@RequestMapping("getProductListByKeyword.killer")
	public ModelAndView getProductListByKeyword(String keyword,int nowPage){
		return null;
	}
	@RequestMapping("getProductListByDepDateAndCountry.killer")
	public ModelAndView getProductListByDepDateAndCountry(ProductVO paramPvo,int nowPage){
		return null;
	}
	@RequestMapping("getProductByProductId.killer")
	public ModelAndView getProductByProductId(int productId){
		return null;
	}
}
